package com.ruoyi.statisticalCenter.controller;

import java.util.List;

import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.domain.vo.InitTableVo;
import com.ruoyi.common.service.TableService;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.logistic.domain.PageInfo;
import com.ruoyi.statisticalCenter.domain.ScAssetsAndLiabilities;
import com.ruoyi.statisticalCenter.domain.vo.ScEstimatedCostVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.statisticalCenter.domain.ScEstimatedCost;
import com.ruoyi.statisticalCenter.service.IScEstimatedCostService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;

/**
 * 客户账单核销Controller
 *
 * @author ruoyi
 * @date 2024-03-16
 */
@RestController
@Api(tags = "统计中心-预估费用")
@RequestMapping("/statisticalCenter/cost")
public class ScEstimatedCostController extends BaseController
{
    @Autowired
    private IScEstimatedCostService scEstimatedCostService;

    @PostMapping("/list")
    @ApiOperation("预估费用分页查询list")
    public R list(@RequestBody ScEstimatedCostVo scEstimatedCostVo)
    {
        List<ScEstimatedCost> scEstimatedCosts = scEstimatedCostService.selectScEstimatedCostList(scEstimatedCostVo);
        return R.ok(PageInfo.info(scEstimatedCosts));
    }

}
